.chat-message {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typing-indicator {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.connection-status {
  position: relative;
}

.connection-status.online::before {
  content: "";
  position: absolute;
  top: 2px;
  right: -8px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.connection-status.offline::before {
  content: "";
  position: absolute;
  top: 2px;
  right: -8px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.message-time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
}

.image-message {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-message:hover {
  transform: scale(1.05);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: pointer;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
